Don't try to write to pmd pages, there is no writeable-pmd support.
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Thu, 4 May 2006 23:27:10 +0000 (00:27 +0100)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Thu, 4 May 2006 23:27:10 +0000 (00:27 +0100)
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/pgtable-3level.h

index 528cc0478f21f432dbe65e898240306bdee41828..220d131829a548e44c43f2af437080d3dc2eeca2 100644 (file)
@@ -119,13 +119,7 @@ static inline void pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *pt
        ptep->pte_high = 0;
 }
 
-static inline void pmd_clear(pmd_t *pmd)
-{
-       u32 *tmp = (u32 *)pmd;
-       *tmp = 0;
-       smp_wmb();
-       *(tmp + 1) = 0;
-}
+#define pmd_clear(xp)  do { set_pmd(xp, __pmd(0)); } while (0)
 
 static inline pte_t ptep_get_and_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep)
 {